package com.bawei.module_mine.state

import com.bawei.lib_common.mvi.IState
import com.bawei.module_mine.model.entity.UserEntity
import kotlin.random.Random

sealed class RegisterState:IState {
    data class registerSuccess(val result:UserEntity):RegisterState(){
        override fun equals(other: Any?): Boolean {
            return false
        }
        override fun hashCode(): Int {
            return Random.nextInt()
        }
    }
    data class registerFailed(val result:Boolean=false):RegisterState(){
        override fun equals(other: Any?): Boolean {
            return false
        }
        override fun hashCode(): Int {
            return Random.nextInt()
        }
    }
    object registerInit:RegisterState()
}